package com.bw.house.api

import com.bw.common.entity.BaseRes
import com.bw.house.entity.HouseEntityItem
import com.bw.house.entity.TenantEntityItem
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface HouseApiServer {
    //通过id 获取房源各个区的房源数据
    @GET("/api/properties/region/{regionId}")
    suspend fun getHouseData(@Path("regionId")id:Int):BaseRes<List<HouseEntityItem>>

    //获取所有房源信息
    @GET("/api/properties")
    suspend fun getTenantData():BaseRes<List<TenantEntityItem>>

    //根据企业名称搜索
    @GET("/api/properties/search")
    suspend fun getSearchData(@Query("keyword") keyword:String):BaseRes<List<TenantEntityItem>>




}